package com.yex.dao;


import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.yex.entity.WalletEntity;
import org.apache.ibatis.annotations.Param;

/**
 * 钱包
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2018-12-26 15:09:15
 */
public interface WalletDao extends BaseMapper<WalletEntity> {

    int insertWallet(WalletEntity walletEntity);

    int updateFrozen(WalletEntity walletEntity);

    int updateUnFrozen(WalletEntity walletEntity);

    int updateAdd(WalletEntity walletEntity);

    int updateReduce(WalletEntity walletEntity);

    int updateReduceFrozen(WalletEntity walletEntity);

    WalletEntity selectByUserId(@Param("userId") Integer userId);

    int updateAddFrozen(WalletEntity walletEntity);
}
